@model ShivamEMR.Model.Domain.CompanyDomain.Employee

@{
    ViewBag.Title = "Details";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Details</h2>

<fieldset>
    <legend>Employee</legend>

    <div class="display-label">Code</div>
    <div class="display-field">@Model.Code</div>

    <div class="display-label">Title</div>
    <div class="display-field">@Model.Title</div>

    <div class="display-label">FirstName</div>
    <div class="display-field">@Model.FirstName</div>

    <div class="display-label">MiddleName</div>
    <div class="display-field">@Model.MiddleName</div>

    <div class="display-label">LastName</div>
    <div class="display-field">@Model.LastName</div>

    <div class="display-label">AltFirstName</div>
    <div class="display-field">@Model.AltFirstName</div>

    <div class="display-label">AltMiddleName</div>
    <div class="display-field">@Model.AltMiddleName</div>

    <div class="display-label">AltLastName</div>
    <div class="display-field">@Model.AltLastName</div>

    <div class="display-label">DateOfBirth</div>
    <div class="display-field">@String.Format("{0:g}", Model.DateOfBirth)</div>

    <div class="display-label">Barcode</div>
    <div class="display-field">@Model.Barcode</div>

   @* <div class="display-label">MaritalSatusID</div>
    <div class="display-field">@Model.MaritalSatusID</div>*@

    <div class="display-label">Sex</div>
    <div class="display-field">@Html.DisplayTextFor(_ => Model.Sex.SexName).ToString()</div>

   @* <div class="display-label">MaritalStatus</div>
    <div class="display-field">@Html.DisplayTextFor(_ => Model.MaritalStatus).ToString()</div>

    <div class="display-label">Picture</div>
    <div class="display-field">@(Model.Picture == null ? "None" : Model.Picture.Title)</div>

    <div class="display-label">Addresses</div>
    <div class="display-field">@(Model.Addresses == null ? "None" : Model.Addresses.Count.ToString())</div>

    <div class="display-label">Contacts</div>
    <div class="display-field">@(Model.Contacts == null ? "None" : Model.Contacts.Count.ToString())</div>

    <div class="display-label">CitizenShips</div>
    <div class="display-field">@(Model.CitizenShips == null ? "None" : Model.CitizenShips.Count.ToString())</div>

    <div class="display-label">Informations</div>
    <div class="display-field">@(Model.Informations == null ? "None" : Model.Informations.Count.ToString())</div>

    <div class="display-label">Account</div>
    <div class="display-field">@Html.DisplayTextFor(_ => Model.Account).ToString()</div>

    <div class="display-label">PersonRoles</div>
    <div class="display-field">@(Model.PersonRoles == null ? "None" : Model.PersonRoles.Count.ToString())</div>
*@
    <div class="display-label">PersonStatus</div>
    <div class="display-field">@Html.DisplayTextFor(_ => Model.PersonStatus.Status).ToString()</div>

   @* <div class="display-label">Groups</div>
    <div class="display-field">@(Model.Groups == null ? "None" : Model.Groups.Count.ToString())</div>

    <div class="display-label">Documents</div>
    <div class="display-field">@(Model.Documents == null ? "None" : Model.Documents.Count.ToString())</div>

    <div class="display-label">Assignments</div>
    <div class="display-field">@(Model.Assignments == null ? "None" : Model.Assignments.Count.ToString())</div>

    <div class="display-label">InteractionsWith</div>
    <div class="display-field">@(Model.InteractionsWith == null ? "None" : Model.InteractionsWith.Count.ToString())</div>

    <div class="display-label">EmpCode</div>
    <div class="display-field">@Model.EmpCode</div>*@

    <div class="display-label">DateOfJoin</div>
    <div class="display-field">@String.Format("{0:g}", Model.DateOfJoin)</div>

    <div class="display-label">EmpNotes</div>
    <div class="display-field">@Model.EmpNotes</div>

    <div class="display-label">EmployeeStatus</div>
    <div class="display-field">@Html.DisplayTextFor(_ => Model.EmployeeStatus.Status).ToString()</div>

    <div class="display-label">Group</div>
    <div class="display-field">@Html.DisplayTextFor(_ => Model.Group.Group).ToString()</div>

  @*  <div class="display-label">CurrentBranches</div>
    <div class="display-field">@(Model.CurrentBranches == null ? "None" : Model.CurrentBranches.Count.ToString())</div>

    <div class="display-label">Designations</div>
    <div class="display-field">@(Model.Designations == null ? "None" : Model.Designations.Count.ToString())</div>

    <div class="display-label">Appointments</div>
    <div class="display-field">@(Model.Appointments == null ? "None" : Model.Appointments.Count.ToString())</div>

    <div class="display-label">Schedule</div>
    <div class="display-field">@(Model.Schedule == null ? "None" : Model.Schedule.Count.ToString())</div>

    <div class="display-label">Interactions</div>
    <div class="display-field">@(Model.Interactions == null ? "None" : Model.Interactions.Count.ToString())</div>*@
</fieldset>
<p>
    @Html.ActionLink("Edit", "Edit", new { id=Model.ID }) |
    @Html.ActionLink("Back to List", "Index")
</p>


